package com.itheima.springbootmybatisdemo.mapper;

import com.itheima.springbootmybatisdemo.pojo.Emp;
import com.itheima.springbootmybatisdemo.pojo.EmpDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * TODO
 *
 * @Author mr.luo
 * @Date 15 4月 2025 15:59
 */
@Mapper
public interface LoginMapper {
    /**
     * 登录
     * @param empDTO
     * @return
     */
    @Select("select * from emp where username = #{username} and password = #{password}")
    Emp login(EmpDTO empDTO);
}
